共计 133 个字符,预计需要花费 1 分钟才能阅读完成。
1 查看 tcp 端口占用情况
$ netstat -ntlp
2 杀死进程
$ kill -9 PID
3 nginx 配置生效
$ nginx -c /etc/nginx/nginx.conf
$ nginx -s reload
4 后台启动
$ nohup python -u test.py > test.out 2>&1 &
正文完